package com.forenow.demo.AnimalTest;

public abstract class Animal {
    String name;
    int legNum;
    public Animal(){

    }
    public Animal(String name, int legNum) {
        this.name = name;
        this.legNum = legNum;
    }

    abstract void shuot();

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getLegNum() {
        return legNum;
    }

    public void setLegNum(int legNum) {
        this.legNum = legNum;
    }
}
